-- GENERATED SPELL FOR [Emeraldon Oracle] --


function spell0_12476(pUnit, Event) --@Regrowth,n/a--
pUnit:FullCastSpellOnTarget(20665,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_12476', 23000, 1)
end

function spell1_12476(pUnit, Event) --@Rejuvenation,Heal--
pUnit:FullCastSpellOnTarget(20664,pUnit)
pUnit:RegisterEvent('Sorts_12476', 12000, 1)
end

function Sorts_12476(pUnit, Event)
local choix_sorts_12476 = math.random(0, 1)
if choix_sorts_12476 == 0 then
pUnit:RegisterEvent('spell0_12476', 1, 1)
end
if choix_sorts_12476 == 1 then
pUnit:RegisterEvent('spell1_12476', 1, 1)
end
end

function mob12476_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12476', math.random(1500, 3000), 1)
end

function mob12476_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12476_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12476_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12476, 1, 'mob12476_Action')
RegisterUnitEvent(12476, 2, 'mob12476_Leave')
RegisterUnitEvent(12476, 3, 'mob12476_Kill')
RegisterUnitEvent(12476, 4, 'mob12476_Die')
